package com.samphanie.dries.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/9/3 13:39
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ApiException extends RuntimeException {

//    private IErrorCode errorCode;
//
//    public ApiException(IErrorCode errorCode){
//        super(errorCode.getMessage());
//        this.errorCode = errorCode;
//    }

    public ApiException(String message) {
        super(message);
    }

    public ApiException(Throwable cause) {
        super(cause);
    }

    public ApiException(String message, Throwable cause) {
        super(message, cause);
    }


}
